﻿@model xiushen.Domain.Book

<div>
    <ul class="breadcrumb">
        <li>
            <a href="@Url.Action("Category")">分类</a>
       
            <span class="divider">/</span>
        </li>
        <li><a href="@Url.Action("Books", new { id = Model.CategoryID })">@Model.Category.Name</a>
            <span class="divider">/</span></li>
        <li class="active">@Model.Name</li>
    </ul>
    <span class="dashLine"></span>
    <h2>@Model.Name</h2>
    <div class="pull-right">
        作者：@Model.Author
        分类：@Model.Category.Name
    </div>
    <span class="dashLine"></span>
    <div>@Html.Raw(Model.Description)</div>
    <div>
         <a href="@Url.Action("Content", new { bookId = Model.ID, chapterId = 1, categoryId = Model.CategoryID })"  class="btn btn-primary pull-right">
        开始阅读</a>
    </div>
</div>

<span class="dashLine"></span>
<ul class="chapter">
    @foreach(var data in Model.Chapter)
    {
        <li><a href="@Url.Action("Content", new { bookId = data.BookID, chapterId = data.ID, categoryId = data.CategoryID })">@data.Name</a> </li>
    }
</ul>
